package com.linghu.service;

import com.linghu.config.RabbitMQConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class ReminderReceiver {

    @RabbitListener(queues = RabbitMQConfig.QUEUE_NAME)
    public void receiveReminder(String message) {
        log.info("从mq端收到的消息: {}", message);
        // 处理收到的消息
    }
}
